<%@ page import="registerallocator.Turma" %>



<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'alunos', 'error')} ">
	<label for="alunos">
		<g:message code="turma.alunos.label" default="Alunos" />
		
	</label>
	<g:select name="alunos" from="${registerallocator.Aluno.list()}" multiple="multiple" optionKey="id" size="5" value="${turmaInstance?.alunos*.id}" class="many-to-many"/>
</div>

<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'disciplina', 'error')} required">
	<label for="disciplina">
		<g:message code="turma.disciplina.label" default="Disciplina" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="disciplina" name="disciplina.id" from="${registerallocator.Disciplina.list()}" optionKey="id" required="" value="${turmaInstance?.disciplina?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'horario', 'error')} required">
	<label for="horario">
		<g:message code="turma.horario.label" default="Horario" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="horario" name="horario.id" from="${registerallocator.HorarioTurma.list()}" optionKey="id" required="" value="${turmaInstance?.horario?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'professor', 'error')} required">
	<label for="professor">
		<g:message code="turma.professor.label" default="Professor" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="professor" name="professor.id" from="${registerallocator.Professor.list()}" optionKey="id" required="" value="${turmaInstance?.professor?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: turmaInstance, field: 'sala', 'error')} required">
	<label for="sala">
		<g:message code="turma.sala.label" default="Sala" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="sala" name="sala.id" from="${registerallocator.Sala.list()}" optionKey="id" required="" value="${turmaInstance?.sala?.id}" class="many-to-one"/>
</div>

